#!/bin/bash
readonly FNAME='/proc/loadavg'
[[ -r "$FNAME" ]] || exit 0
readonly MAX="${1:-10}" # default maximum load
read L1 L5 L15 JUNK <<< "$(< "$FNAME")"
echo "load,$MAX,$L1:$L5:$L15"
